package com.lzm.ydpt.mvp.modelimpl;

import com.byt.framlib.basemvp.basebean.BaseResponseBean;
import com.byt.framlib.basemvp.boby.FormBodys;
import com.lzm.ydpt.entity.mall.MallOrderBean;
import com.lzm.ydpt.mvp.api.APIManager;
import com.lzm.ydpt.mvp.contract.MallOrderDetailsContract;

import io.reactivex.Observable;

/**
 * 类名称：XhXnOrderDetailsModelImpl
 * 类描述：模型实现
 */
public class MallOrderDetailsModelImpl implements MallOrderDetailsContract.Model {

    @Override
    public Observable<BaseResponseBean<MallOrderBean>> onOrderDetails(FormBodys formBodys) {
        return APIManager.getInstance().getAPIService().onMallOrderDetails(formBodys);
    }

    @Override
    public Observable<BaseResponseBean<Object>> onCancalOrder(FormBodys formBodys) {
        return APIManager.getInstance().getAPIService().onCancelMallOrder(formBodys);
    }

    @Override
    public Observable<BaseResponseBean<Object>> onDeteleOrder(FormBodys formBodys) {
        return APIManager.getInstance().getAPIService().onDeteleMallOrder(formBodys);
    }

    @Override
    public Observable<BaseResponseBean<Object>> onReceiptOrder(FormBodys formBodys) {
        return APIManager.getInstance().getAPIService().onReceiptMallOrder(formBodys);
    }
}